#pragma once
#include "Shape.h"
class Box :
	public Shape
{
public:
	Box(vec4 _pos, vec3 _rot, vec3 _min, vec3 _max);
	~Box();

	bool intersect(Intersection &_int);
	vec4 getColor(Intersection &_int);

	vec3 getMaxBound();
	vec3 getMinBound();
	bool isBounded(){ return true; }
	vec3 getCenter();

private:
	vec3 extents[2];	//the min and max bounds of the box

	vec3 minBound;
	vec3 maxBound;
};

